const ExtMap = {
    doc: "docx",
    docx: "docx",
    ppt: "ppt",
    pptx: "ppt",
    pdf: "pdf",
    xlsx: "xlsx",
    xls: "xlsx",
    XLS: "xlsx",
    txt: "txt",
    zip: "zip",
    rar: "zip",
    jpg: "png",
    jpeg: "png",
    png: "png",
    PNG: "png",
    gif: "png",
    mpeg: "music",
    mp3: "music",
    wav: "music",
    mp4: "video",
    html: "html",
};

export const fileIcon = (ext) => {
    return require(`../assets/file_ext_icon/${ExtMap[ext] || "unknown"}.svg`);
};